package com.fsl.springbootdesignpattern.d_proxy.JdkProxy;

import com.fsl.springbootdesignpattern.d_proxy.StaticProxy.MyProxy;
import com.fsl.springbootdesignpattern.d_proxy.StaticProxy.Traveller;

public class Test {

    public static void main(String[] args) {

        Traveller traveller = new Traveller("KING JAMES");

        MyProxy myProxy = new JDKDynamicProxy(traveller).getProxy();

        myProxy.buyTicket();
    }
}
